package com.wwj.springboot.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wwj.springboot.dao.UserMapper;
import com.wwj.springboot.entity.User;
import com.wwj.springboot.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
 * @author wwj
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService{

    @Autowired
    private  UserMapper userMapper;

    @Override
    public User login(String username, String password) {

        User user = userMapper.login(username,password);

        return  user;
    }
}
